#include #include using namespace std; void main() { //pointer - variable that holds an address //address of variables or functions float A[100] = {0}; cout << A << endl; cout << A + 1 << endl; //pointer arithmetic A[8] = 12; cout << A[8] << endl; cout << A[0] << endl; float* p = A + 8; cout << p << endl; cout << *p << endl; //display the value at the address that p points to cout << *(A + 8) << endl; cout << A[8] << endl; for(int i = 0; i < 100;i++) { A[i] = 9; } //walking a pointer for(float* fp = A; fp < A + 100; fp++) { *fp = 9; } }